import { NUMADD } from './actionType'

// 此处初始化状态; 或者在提
export default (/*state = initialState*/state, { type, payload }) => {
  switch (type) {

    case NUMADD:
      return { ...state, num: state.num + payload }

    default:
      return state
  }
}


